package cn.yitun.chat.yitunservercommonlib.converter.dto2po.contact;


import cn.yitun.chat.yitunservercommonlib.dataentity.dto.contact.ContactCategoryDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.po.contact.ContactCategoryInfo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface ContactCategoryDto2PoConverter {

    ContactCategoryDto2PoConverter INSTANCE = Mappers.getMapper(ContactCategoryDto2PoConverter.class);

    ContactCategoryDto do2dto(ContactCategoryInfo info);

    List<ContactCategoryDto> do2dto(List<ContactCategoryInfo> doList);

    @InheritInverseConfiguration
    ContactCategoryInfo dto2do(ContactCategoryDto dto);
    @InheritInverseConfiguration
    List<ContactCategoryInfo> dto2do(List<ContactCategoryDto> dtoList);
}
